package ooday02Exercise;

import javax.print.Doc;

public class ExtendsTest {
    public static void main(String[] args) {
        Student student=new Student("张三",25,"安徽合肥","JSD202302","001");
        student.eat();
        student.sleep();
        student.sayHi();
        student.study();

        Teacher teacher=new Teacher("李四",39,"安徽滁州",6000);
        teacher.eat();
        teacher.sleep();
        teacher.sayHi();
        teacher.teach();

        Doctor doctor=new Doctor("王五",40,"安徽儿童医院","专家");
        doctor.eat();
        doctor.sleep();
        doctor.sayHi();
        doctor.cut();
    }
}
